home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1643 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: au.wang.com!chianina!usenet
  2. From: Jeremy Lee <jeremy_lee@ccmail.au.wang.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: (no subject)
  5. Date: 15 Jan 1996 22:25:22 GMT
  6. Organization: WANG
  7. Message-ID: <4dek8i$qjf@chianina.au.wang.com>
  8. References: <1996Jan15.174105.22784@tellab5.tellabs.com>
  9. NNTP-Posting-Host: hellfire.au.wang.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1B sun4)
  14. X-URL: news:1996Jan15.174105.22784@tellab5.tellabs.com
  15.  
  16. Joe Toth <toth@tellabs.com> wrote:
  17. [...]
  18. >The Scenario;
  19. [...]
  20. >  I perform my functions and set
  21. >  the signals to allow for a proper return to the code when the interrupt
  22. >  occurred.  For some reason, the 'bell' character is output to the terminal
  23. >  which causes the audio/screen flash on the monitor.  The standard code
  24. >  is executing in a system call (read) when the SIGALRM is generated.
  25. [...]
  26.  
  27. alarm() can't do that. read() can't do that. You MUST have something queued
  28. in the output buffer that has not been flushed by any of the canonical
  29. processing until the interrupt occurs. Try flushing the buffer ?TCIOFLUSH?
  30. (termios.h) via an ioctl. While this might make the problem go away, it 
  31. would be better to find out whats ready to print and where it came from.
  32. -- 
  33. ----------------------------------------------------------------------
  34. Jeremy Lee
  35. Wang Australia
  36. jeremy_lee@ccmail.au.wang.com
  37.  
  38.